// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__2B2319F6_E8EC_4133_8051_1556C1BFEC3B__INCLUDED_)
#define AFX_STDAFX_H__2B2319F6_E8EC_4133_8051_1556C1BFEC3B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

//#include <afxsock.h>// MFC socket extensions
#include "EntityDefine.h"
#include "Singleton.h"
#include "ExcuteAppManager.h"

#include "../Release/DictionaryApi.h"
#include "../Release/DrawMapApi.h"
#include "../Release/GameCoreApi.h"
#include "../include/ProtocolDefine.h"
#include "../include/IniManager.h"

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__653C899E_5D43_4C11_ABCF_02E64ED1178D__INCLUDED_)
#define SAFE_DELETE_STRUCT(lpStruct) \
	if(lpStruct){\
	delete lpStruct;\
	lpStruct=NULL;}  

#define SAFE_CLOSEHANDLE(h) \
	if(h!=INVALID_HANDLE_VALUE){\
	CloseHandle(h);\
	h=INVALID_HANDLE_VALUE;} 
